from fastapi import FastAPI
from fastapi import Header

app = FastAPI()


@app.get('/api')
def get(token: str = Header(..., description='token')):
    print(token)
    return {"success": True}